package com.firebird.app.fejpsl.ui.activity.sword.top;

import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import com.firebird.app.fejpsl.base.BaseTbActivity;
import com.firebird.app.fejpsl.R;

public class RandTopActivity extends BaseTbActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.sword_top_rand_top);
        initView();
    }
    private void initView() {
        Resources r=this.getResources();
        Drawable drawable=r.getDrawable(R.drawable.back);
        drawable.setBounds(0, 0, 120, 120);
        View view= LayoutInflater.from(this).inflate(R.layout.layout_toolbar,null);
        TextView tv_back=(TextView)findViewById(R.id.tv_back);
        tv_back.setCompoundDrawables(drawable, null, null, null);
        setBack();
        String titleName = r.getString(R.string.rand_top);
        setTitle(titleName);
    }
}
